/**
 * @filename:UsersServiceImpl 2020-07-01 11:05:16
 * @project com/lwl/blue  V1.0
 * Copyright(c) 2018 <a href=mailto:lanwenliang@yidianlife.com>蓝文良</a> Co. Ltd. 
 * All right reserved. 
 */
package com.lwl.blue.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.lwl.blue.commont.base.JsonResult;
import com.lwl.blue.commont.base.PageParam;
import com.lwl.blue.entity.Supplier;
import com.lwl.blue.entity.Users;
import com.lwl.blue.dao.UsersDao;
import com.lwl.blue.service.UsersService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import javax.annotation.Resource;

/**   
 * <p>自定义serviceImpl写在这里</p>
 * 
 * <p>说明： 用户表服务实现层</P>
 * @version: V1.0
 * @author: <a href=mailto:lanwenliang@yidianlife.com>蓝文良</a>
 * 
 */
@Service
public class UsersServiceImpl  extends ServiceImpl<UsersDao, Users> implements UsersService  {
    @Resource
    UsersDao usersDao;
    @Override
    public JsonResult<Page<Users>> pages(PageParam<Users> pageParam) {
        Page<Users> page = new Page<>(pageParam.getPageNum(), pageParam.getPageSize());
        return new JsonResult<Page<Users>>().success(usersDao.pages(page, pageParam.getParam()));

    }
}